package com.fire.cloud_cilent.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Mr.Fire
 * @Desc 订单服务
 * @Date 2021/12/5
 */
@RestController
public class OrderService {

    @Autowired
    private Environment environment;


    @RequestMapping("/order")
    public String order(){
        String port = environment.getProperty("server.port");
        String order = "hello ,this is a order,port="+port;
        return order;
    }
}
